package com.lzw.demo;

import android.app.Application;

import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Created by lzw on 2017/6/25.
 */

public class App extends Application {
    Server server ;
    @Override
    public void onCreate() {
        super.onCreate();
         server = new Retrofit.Builder()
                .baseUrl("http://c.api.budejie.com")
                .addConverterFactory(GsonConverterFactory.create())
                .build().create(Server.class);

    }
    public Server getServer(){
        return server;
    }
}
